Skip to content
This repository was archived by the owner on Mar 31, 2021. It is now read-only.

fix build for macOS#3

Open
midchildan wants to merge 1 commit intomischief:masterfrom
midchildan:feat/macos
Open

fix build for macOS#3
midchildan wants to merge 1 commit intomischief:masterfrom
midchildan:feat/macos

Conversation

@midchildan
Copy link

Fixes build on macOS with macFUSE.

{
CACHECTLSIZE = 8, /* sizeof("cleared\n") - 1 */
MSIZE = 8192
MSIZE_9P = 8192
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSIZE conflicts with the macOS standard library.

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/i386/param.h
104:#define MSIZESHIFT      8                       /* 256 */
105:#define MSIZE           (1 << MSIZESHIFT)       /* size of an mbuf */

typedef long long vlong;

#ifndef __GLIBC__
typedef unsigned long ulong;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ulong is specific to glibc.

@midchildan midchildan changed the title build: fix build for macOS fix build for macOS Mar 30, 2021
@mischief
Copy link
Owner

hi,

i don't maintain this code, and it no longer even builds on my linux host. you are better off using a maintained 9p client such as 9front's, v9fs, 9pfuse, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants